home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / amos / amsls496.lzh / AMOSLIST / 000137_amos-request@svcs1.digex.net_Mon Apr 29 06:35:31 1996.msg < prev    next >
Internet Message Format  |  1996-05-01  |  3KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id GAA12054;  for <mcox@access.digex.net> ; Mon, 29 Apr 1996 06:35:30 -0400
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.6.12/8.6.12) id CAA07608 for amos-out; Mon, 29 Apr 1996 02:46:01 -0400
  3. Received: from mail1.access.digex.net (mail1-2.access.digex.net [204.91.197.3]) by svcs1.digex.net (8.6.12/8.6.12) with ESMTP id CAA07605 for <amos-list@svcs1.digex.net>; Mon, 29 Apr 1996 02:46:00 -0400
  4. Received: from conan.eds-ms.com (conan.eds-ms.com [204.240.136.11]) by mail1.access.digex.net (8.6.12/8.6.12) with SMTP id CAA02717;  for <amos-list@access.digex.net> ; Mon, 29 Apr 1996 02:45:53 -0400
  5. Received: from cicladi ([130.192.241.2]) by conan.eds-ms.com (5.x/SMI-SVR4)
  6.     id AA06913; Mon, 29 Apr 1996 02:45:42 -0400
  7. Received: from ercole.educ.di.unito.it by cicladi (4.1/SMI-4.1)
  8.     id AA22946; Mon, 29 Apr 96 08:44:49 +0200
  9. Received: by ercole.educ.di.unito.it (4.1/SMI-4.1)
  10.     id AA11007; Mon, 29 Apr 96 08:42:33 +0200
  11. Date: Mon, 29 Apr 1996 08:42:32 +0200 (MET DST)
  12. From: Ferraris Luca <ferraril@ercole.educ.di.unito.it>
  13. To: Tom Davies <tommy@cybent.demon.co.uk>
  14. Cc: amos-list@conan.eds-ms.com
  15. Subject: Re: Bobs on scrolling maps
  16. In-Reply-To: <9604232337.AA000he@cybent.demon.co.uk>
  17. Message-Id: <Pine.SUN.3.91.960429083614.10865A-100000@ercole>
  18. Mime-Version: 1.0
  19. Content-Type: TEXT/PLAIN; charset=US-ASCII
  20. Status: RO
  21. X-Status: 
  22.  
  23. On Tue, 23 Apr 1996, Tom Davies wrote:
  24.  
  25. > Setting up a tile based system to scroll with aint easy but I saw a routine
  26. > in CU Amiga a few years back that was absolutly superb and does it really
  27. > well. Decide on the size of blocks... I went for 32*50 on a 200 lines
  28. > screen. Decide how long the level will be (every 10 bloks equates to 1
  29. > screen). Write a data routine that goes through the level with image
  30. > numbers at all the various points, and read this into a well thought out
  31. > array.
  32. > Open a screen about 750 by 200 .Offset it 32 pixels and paste down all the
  33. > icons on the screen. Then write a scroll routine that dies this :-
  34. > 1. Offsets the screen. 
  35. > 2. Every 32 pixels draws 1 block to the LEFT of the viewport.
  36. > 3. At the end of the scrreen, Whip it back the the start where it will be
  37. > waiting nice and neat as youve drawn the icons previously with paste icon.
  38. > Use a parameter to control the offset each time and then the scroller can
  39. > be called in a main loop nice and easy.
  40. >
  41. This is what i've done... Really smooth!
  42.  
  43. > Bobs. Right. Hardware scrolling as I just described simply shifts the part
  44. > of the screen you can see on the TV. Imagine behind the TV is a huge
  45. > poster. It moves the TV screen around the poster, revealing new bits
  46. > underneath. As any bobs drawn are part of the bitmap, off course they will
  47. > move with the screen too !!!
  48. Oh, well, this problem has found a solution. Now bob moves correctly but 
  49. when i scroll the screen and the right edge reachs the bob, bob is hidden..
  50.  
  51. I tried using sprites because they use hardware coordinates and this 
  52. problem is off but i use a 8 colours bob and there is no way to use a 8 
  53. colours sprite.
  54.  
  55.  
  56.                                Luca Ferraris
  57.                     e-mail: ferraril@educ.di.unito.it
  58.        http://www.di.unito.it/pub/WWW/www_student/amiga/LucaFerraris/
  59.        **************************************************************
  60.